#include "fish2_hard.h"

Fish2_hard::Fish2_hard():Qpixmapitem()
{

}


Fish2_hard::Fish2_hard(const QString filename,QGraphicsScene*scene):Qpixmapitem(filename,scene)
{

}


void Fish2_hard::advance(int phase)
{
    if(mapToScene(0,0).y()<=0||mapToScene(0,0).x()<=0){
        this->setPos(2200,100+rand()%1000);
    }

    this->setPos(mapToScene(-rand()%50,-rand()%5));
}
